package com.atguigu.cloud.service.impl;

import com.atguigu.cloud.service.MemberService;
import org.springframework.stereotype.Service;


@Service
public class MemberServiceImpl implements MemberService {

    @Override
    public String add(Integer uid)
    {
        System.out.println("---come in addUser");

        if (uid == -1) throw new IllegalArgumentException("parameter is negative。。。。");

        return "ok";
    }

    public int del(Integer uid)
    {
        System.out.println("---come in del");

        return uid;
    }
}
